package com.fit.model.combo.weekDays;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

import org.apache.tapestry5.OptionGroupModel;
import org.apache.tapestry5.OptionModel;
import org.apache.tapestry5.util.AbstractSelectModel;

import com.fit.entities.weekdays.WeekDays;





public class WeekDaysSelectModel extends AbstractSelectModel{

	private Collection<WeekDays> weekDays; 

	public WeekDaysSelectModel(Collection<WeekDays> readers) {
		this.weekDays = readers;
	}

	public List<OptionGroupModel> getOptionGroups() {
		return null;
	}

	public List<OptionModel> getOptions() {
		List<OptionModel> list = new ArrayList<OptionModel>();
		for (WeekDays a : weekDays) {
			list.add(new WeekDaysOptionModel(a));
		}
		return list;
	}
}
